<template>
  <div class="topNav">
    <!--    导航栏左侧图标-->
    <div class="topleft">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-31liebiao"></use>
      </svg>
    </div>
    <!--   导航栏中间按钮(登录 我的 发现 云村 视频)-->
    <div class="topContent">
      <span v-show="!this.$store.state.isLogin" @click="$router.push('/Login')">登录</span>
      <span @click="$router.push({path :'/infoUser',query:{userId:this.$store.state.userID}})" v-show="this.$store.state.isLogin">我的</span>
      <span class="active" @click="$router.push('/')" >发现</span>
      <span>云村</span>
      <span>视频</span>
    </div>
    <!--    搜索-->
    <div class="topRight">
      <svg class="icon" aria-hidden="true" @click="$router.push('/search')">
        <use xlink:href="#icon-sousuo"></use>
      </svg>
    </div>
  </div>

</template>
<script>

export default {


}
</script>


<style lang="less" scoped>
.topNav{
  width: 100%;
  height: 1rem;
  padding: .2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .topContent{
    width: 65%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    // align-items: center;
    font-size: .36rem;
    .active{
      font-weight: 900;
    }
  }
}
</style>
